package com.sdy.hospitalguard.biz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sdy.common.model.BizException;
import com.sdy.hospitalguard.biz.model.TemporaryCard;
import com.sdy.mvc.service.BaseService;

import java.util.List;

/**
 * <p>
 * 临时卡表 服务类
 * </p>
 *
 * @author zzq
 * @since 2020-06-02
 */
public interface TemporaryCardService extends BaseService<TemporaryCard> {

    /**
     * 临时卡分页数据
     *
     * @param page
     * @param nameAndPhone
     * @param status
     * @return
     */
    Page pageData(Page page, String nameAndPhone, Integer status);

    /**
     * 临时卡数据
     *
     * @param nameAndPhone
     * @param status
     * @return
     */
    List listData(String nameAndPhone, Integer status);

    void insertCard(TemporaryCard temporaryCard) throws BizException;

    void cardFailure() throws BizException;

    void deleteCard(TemporaryCard temporaryCard) throws BizException;

    void changeStatus(TemporaryCard temporaryCard) throws BizException;

}
